import { Injectable } from '@angular/core';
import {HttpClient} from '@angular/common/http';

@Injectable({
  providedIn: 'root'
})
export class HttpServiceService {

  url = 'http://localhost:8080/';
  constructor(private http: HttpClient) {}

  post(method, parameter) {
   return this.http.post(this.url + method, parameter);
  }
}
